
function [h] = eval_stump(stump,X)
% EVAL_STUMP: Returns the set of weak hypotheses of cardinality, length(X) using the feature that
% gave rise to the best stump (given as input). The stump is a structure
% containing weighted error, threshold, sign and the row index of the
% most discriminative feature
% if the threshold is greater - the sign will be negative
% if the threshold is lesser -  the sign will be positive
h = sign( stump.s*(X(:,stump.ind)-stump.x0) );
